<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  -->

<div fxLayout="column" fxLayoutGap="10px">
    <sp-basic-header-title-component
        title="Info"
    ></sp-basic-header-title-component>
    <sp-basic-inner-panel panelTitle="Versions" fxFlex="90">
        <div *ngIf="versionInfo">
            <ul>
                <li>
                    <div fxFlex="30">Backend Version</div>
                    <div fxFlex="70">{{ versionInfo.backendVersion }}</div>
                </li>
            </ul>
        </div>
    </sp-basic-inner-panel>
    <sp-basic-inner-panel
        panelTitle="System Info"
        innerPadding="0"
        outerMargin="0"
        fxFlex="90"
    >
        <div *ngIf="systemInfo">
            <ul>
                <li>
                    <div fxFlex="30">Java VM Vendor</div>
                    <div fxFlex="70">{{ systemInfo.javaVmVendor }}</div>
                </li>
                <li>
                    <div fxFlex="30">Java VM Name</div>
                    <div fxFlex="70">{{ systemInfo.javaVmName }}</div>
                </li>
                <li>
                    <div fxFlex="30">Java VM Version</div>
                    <div fxFlex="70">{{ systemInfo.javaVmVersion }}</div>
                </li>
                <li>
                    <div fxFlex="30">Java Runtime Name</div>
                    <div fxFlex="70">{{ systemInfo.javaRuntimeName }}</div>
                </li>
                <li>
                    <div fxFlex="30">Java Runtime Version</div>
                    <div fxFlex="70">
                        {{ systemInfo.javaRuntimeVersion }}
                    </div>
                </li>
                <li>
                    <div fxFlex="30">CPU</div>
                    <div fxFlex="70">{{ systemInfo.cpu }}</div>
                </li>
                <li>
                    <div fxFlex="30">OS Name</div>
                    <div fxFlex="70">{{ systemInfo.osName }}</div>
                </li>
                <li>
                    <div fxFlex="30">OS Version</div>
                    <div fxFlex="70">{{ systemInfo.osVersion }}</div>
                </li>
                <li>
                    <div fxFlex="30">Total Memory</div>
                    <div fxFlex="70">
                        {{ systemInfo.totalMemory }} ({{
                            systemInfo.totalMemoryKB
                        }}
                        KB)
                    </div>
                </li>
                <li>
                    <div fxFlex="30">Free Memory</div>
                    <div fxFlex="70">
                        {{ systemInfo.freeMemory }} ({{
                            systemInfo.freeMemoryKB
                        }}
                        KB)
                    </div>
                </li>
            </ul>
        </div>
    </sp-basic-inner-panel>
</div>
